package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;

import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.db.table.DepartmentTable;

import java.util.List;

/**
 * @author lj
 * 出发线路界面列表适配器
 */
public class SetOutLineAdapter extends CommonRecycleAdapter<DepartmentTable> {

    public SetOutLineAdapter(Context context, List<DepartmentTable> dataList) {
        super(context, dataList, R.layout.adapter_set_out_line_item);
    }

    @Override
    public void bindData(CommonViewHolder holder, DepartmentTable data, int position) {

        holder.setText(R.id.tv_next_dept_name, data.getDeptName());
        holder.setText(R.id.tv_next_dept_code, data.getDeptCode());
    }
}
